package com.company.nuwa.common.enumration;


import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * <p>全局返回码枚举</p >
 * @author Lionel Lee
 * @version 1.0: GlobalCallbackEnum.java
 * @date 2019/12/11 14:16
 */

@AllArgsConstructor
public enum GlobalCallbackEnum implements IBizCode {

    /**
     * 成功
     */
    SUCCESS(200, "success"),
    BAD_REQUEST(400, "错误请求"),
    UN_AUTHORIZED(401, "未通过认证"),
    FORBIDDEN(403, "未授权"),

    SERVICE_ERROR(500, "服务器打瞌睡了～"),

    /**
     * 6位code
     * xxx_yyy
     *
     */


    ;
    /**
     * 编码
     */
    @Getter
    private final  Integer code;

    /**
     * 说明
     */
    @Getter
    private  final  String message;


}
